home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / restaurante_1072.swf / scripts / __Packages / it / sephiroth / XML2Object.as
Text File  |  2009-04-16  |  5KB  |  130 lines

  1. if(true)
  2. {
  3.    if(true)
  4.    {
  5.       ┬º┬ºpush(false);
  6.    }
  7.    if(!┬º┬ºpop())
  8.    {
  9.       if(true)
  10.       {
  11.          if(true)
  12.          {
  13.             ┬º┬ºpush(false);
  14.          }
  15.          if(!┬º┬ºpop())
  16.          {
  17.             if(!_global.it)
  18.             {
  19.                _global.it = new Object();
  20.             }
  21.             ┬º┬ºpop();
  22.             if(!_global.it.sephiroth)
  23.             {
  24.                _global.it.sephiroth = new Object();
  25.             }
  26.             ┬º┬ºpop();
  27.             if(!_global.it.sephiroth.XML2Object)
  28.             {
  29.                var _loc2_ = it.sephiroth.XML2Object = function()
  30.                {
  31.                }.prototype;
  32.                _loc2_.__get__xml = function()
  33.                {
  34.                   return this.oXML;
  35.                };
  36.                _loc2_.parseXML = function(sFile)
  37.                {
  38.                   this.oResult = new Object();
  39.                   this.oXML = sFile;
  40.                   this.oResult = this.translateXML();
  41.                   return this.oResult;
  42.                };
  43.                _loc2_.translateXML = function(from, path, name, position)
  44.                {
  45.                   var _loc2_ = undefined;
  46.                   var _loc9_ = undefined;
  47.                   var _loc4_ = undefined;
  48.                   var _loc10_ = undefined;
  49.                   if(path == undefined)
  50.                   {
  51.                      path = this;
  52.                      name = "oResult";
  53.                   }
  54.                   path = path[name];
  55.                   if(from == undefined)
  56.                   {
  57.                      from = new XML(this.__get__xml().toString());
  58.                      from.ignoreWhite = true;
  59.                   }
  60.                   if(from.hasChildNodes())
  61.                   {
  62.                      _loc9_ = from.childNodes;
  63.                      if(position != undefined)
  64.                      {
  65.                         _loc10_ = path;
  66.                         path = path[position];
  67.                      }
  68.                      while(_loc9_.length > 0)
  69.                      {
  70.                         _loc4_ = _loc9_.shift();
  71.                         _loc2_ = _loc4_.nodeName;
  72.                         if(_loc2_ != undefined)
  73.                         {
  74.                            var _loc5_ = new Object();
  75.                            _loc5_.attributes = _loc4_.attributes;
  76.                            _loc5_.data = _loc4_.firstChild.nodeValue;
  77.                            if(position != undefined)
  78.                            {
  79.                               _loc10_ = path;
  80.                            }
  81.                            if(path[_loc2_] != undefined)
  82.                            {
  83.                               if(path[_loc2_].__proto__ == Array.prototype)
  84.                               {
  85.                                  path[_loc2_].push(_loc5_);
  86.                                  name = _loc4_.nodeName;
  87.                                  position = path[_loc2_].length - 1;
  88.                               }
  89.                               else
  90.                               {
  91.                                  var _loc8_ = path[_loc2_];
  92.                                  path[_loc2_] = new Array();
  93.                                  path[_loc2_].push(_loc8_);
  94.                                  path[_loc2_].push(_loc5_);
  95.                                  name = _loc2_;
  96.                                  position = path[_loc2_].length - 1;
  97.                               }
  98.                            }
  99.                            else
  100.                            {
  101.                               path[_loc2_] = _loc5_;
  102.                               name = _loc2_;
  103.                               position = undefined;
  104.                            }
  105.                         }
  106.                         if(_loc4_.hasChildNodes())
  107.                         {
  108.                            this.translateXML(_loc4_,path,name,position);
  109.                         }
  110.                      }
  111.                   }
  112.                   return this.oResult;
  113.                };
  114.                _loc2_.oResult = new Object();
  115.                ┬º┬ºpush(_loc2_.addProperty("xml",_loc2_.__get__xml,function()
  116.                {
  117.                }
  118.                ));
  119.                ┬º┬ºpush(ASSetPropFlags(it.sephiroth.XML2Object.prototype,null,1));
  120.             }
  121.             ┬º┬ºpop();
  122.          }
  123.       }
  124.       ┬º┬ºgoto(addr324);
  125.    }
  126.    var ┬º┬ºpop() = new ┬ºfunction \┬º\\x1b∩┐╜\\x02\┬º(\┬º∩┐╜\\x07\┬º, \┬º\\x01\┬º, \┬º\\x02\\x01\┬º, \┬º\\x01\┬º, \┬º∩┐╜∩┐╜\\b\\x01∩┐╜\\x02\\x01\\x1d\┬º, _global, it, Object, sephiroth, XML2Object, prototype, __get__xml, oXML, parseXML)\r\n{\r\n}┬º();
  127.    ┬º┬ºpush(┬º┬ºconstant(47));
  128. }
  129. addr324:
  130.